package com.noocodecommit.wicket.jquery;

import org.apache.wicket.Request;
import org.apache.wicket.Session;
import org.apache.wicket.protocol.http.WebSession;

import com.noocodecommit.wicket.stuff.jquery.theme.ITheme;
import com.noocodecommit.wicket.stuff.jquery.theme.cupertino.CupertinoTheme;

public final class JQuery4WicketSession extends WebSession
{
	private ITheme theme;

	public JQuery4WicketSession(Request request)
	{
		super(request);
		this.theme = new CupertinoTheme();
	}

	public ITheme getTheme()
	{
		return theme;
	}

	public void setTheme(ITheme theme)
	{
		this.theme = theme;
	}

	public static JQuery4WicketSession get()
	{
		return (JQuery4WicketSession) Session.get();
	}
}